﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Reflection;

namespace Extensions
{
    static public class AssemblyNameExtensions
    {
        public static bool EndsWith(this AssemblyName assemblyName, string pattern)
        {
            var ret =  new Regex(string.Format(@".*{0}$", pattern)).IsMatch(assemblyName.Name);
            return ret;
        }
    }
}
